package in.co.codedoc.config.tests;

import in.co.codedoc.cg.annotations.HasProperties;
import in.co.codedoc.cg.annotations.IsAnIOCComponent;
import in.co.codedoc.cg.annotations.IsMappedToJSON;
import in.co.codedoc.cg.annotations.Property;
import in.co.codedoc.config.Configurable;
import in.co.codedoc.config.ConfigurationUtil;
import in.co.codedoc.json.JSONValue;

@IsAnIOCComponent
@HasProperties
({
	@Property(name="prop1",datatype=String.class),
	@Property(name="prop2",datatype=String.class)
})
@IsMappedToJSON
public class Configurated
	extends ConfiguratedBase
	implements Configurable
{

	@Override
	public void Configure(JSONValue jsonData)
	{
		ConfigurationUtil.ConfigureUsingProperties(this, jsonData);
	}

	@Override
	public String GetConfigSectionName()
	{
		return "Configurated";
	}

}

